package com.seashop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 前台用户表
 * </p>
 *
 * @author moredln
 * @since 2020-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="前台用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户自增id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "性别(0:未知,1:男,2:女)")
    private String sex;

    @ApiModelProperty(value = "语言类型")
    private String languageType;

    @ApiModelProperty(value = "国家代码")
    private String countryCode;

    @ApiModelProperty(value = "用户当前所在国家")
    private String nowCountryCode;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "归属哪个运营人员的ID")
    private Integer adminId;

    @ApiModelProperty(value = "归属哪个运营人姓名")
    private String adminName;

    @ApiModelProperty(value = "审核人ID")
    private Integer reviewerId;

    @ApiModelProperty(value = "审核人姓名")
    private String reviewerName;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime reviewerTime;

    @ApiModelProperty(value = "销售起始年")
    private String sellSince;

    @ApiModelProperty(value = "工作类型（线上、线下）")
    private String workType;

    @ApiModelProperty(value = "粉丝数")
    private Integer fans;

    @ApiModelProperty(value = "销售平台网址")
    private String shopSite;

    @ApiModelProperty(value = "销售地址")
    private String address;

    @ApiModelProperty(value = "支付方式")
    private String payment;

    @ApiModelProperty(value = "银行")
    private String bank;

    @ApiModelProperty(value = "银行账号")
    private String bankAccount;

    @ApiModelProperty(value = "银行备注信息")
    private String note;

    @ApiModelProperty(value = "上次登陆时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "种类")
    private String category;

    @ApiModelProperty(value = "邀请码")
    private String invitationCode;

    @ApiModelProperty(value = "用户状态(0:审核失败;1:审核完成;2:审核中;3:运营添加;)")
    private Integer status;

    @ApiModelProperty(value = "哪种app")
    private String whatsApp;

    @ApiModelProperty(value = "社交平台")
    private String otherSocial;

    @ApiModelProperty(value = "Line")
    private String line;

    @ApiModelProperty(value = "Facebook")
    private String facebook;

    @ApiModelProperty(value = "用户生日")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "平台")
    private String platform;

    @ApiModelProperty(value = "注册是否已拥有优惠卷")
    private Boolean isRegisterCoupon;

    @ApiModelProperty(value = "推荐码(会员制新增，用于绑定上下级关系)")
    private String referralCode;


}
